FROM openjdk:11-jdk-slim

WORKDIR /opt/aegis

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

#环境变量设置
ENV X_APP_NAME="aegis-gateway-manage-service"

COPY ./target/*.jar ./${X_APP_NAME}.jar

# 对外暴露端口
EXPOSE 8600

ENTRYPOINT [ "java","-jar","-Dfile.encoding=UTF-8","aegis-gateway-manage-service.jar" ]

CMD ["--spring.profiles.active=prod"]